<template>
  <div>
    <div class="tableDiv">
      <div style="margin-bottom:20px">
        <el-date-picker
          v-model="value1"
          type="daterange"
          range-separator="至"
          start-placeholder="开始日期"
          end-placeholder="结束日期"
        ></el-date-picker>
      </div>
      <el-table :data="tableData" style="width: 100%" class="custom-table">
        <el-table-column prop="a" label="货物类型" width="auto"></el-table-column>
        <el-table-column prop="b" label="货物名称" width="auto"></el-table-column>
        <el-table-column prop="c" label="订单号" width="auto"></el-table-column>
        <el-table-column prop="d" label="操作记录" width="auto"></el-table-column>
        <el-table-column prop="h" label="操作人" width="auto"></el-table-column>
        <el-table-column prop="e" label="操作时间" width="auto"></el-table-column>

        <el-table-column fixed="right" label="操作" width="100">
          <template slot-scope="scope">
            <el-button type="text" size="small">恢复</el-button>
          </template>
        </el-table-column>
      </el-table>
      <div style="margin-top:20px">
        <el-pagination background layout="prev, pager, next" :total="1000"></el-pagination>
      </div>
    </div>
    <div>
      <el-dialog title="新增" :visible.sync="dialogVisible" width="600px">
        <div>
          <el-form :inline="true" :model="formInline" label-width="70px">
            <el-form-item label="货物名称">
              <el-input v-model="formInline.user" placeholder="货物名称"></el-input>
            </el-form-item>
            <el-form-item label="客户名称">
              <el-input v-model="formInline.user" placeholder="客户名称"></el-input>
            </el-form-item>
            <el-form-item label="供应商">
              <el-input v-model="formInline.user" placeholder="供应商"></el-input>
            </el-form-item>
          </el-form>
        </div>
        <span slot="footer" class="dialog-footer">
          <el-button @click="dialogVisible = false" size="small">取 消</el-button>
          <el-button type="primary" @click="dialogVisible = false" size="small">确 定</el-button>
        </span>
      </el-dialog>
    </div>
  </div>
</template>
<script>
export default {
  data() {
    return {
      dialogVisible: false,
      value1: "",
      tableData: [
         {
          a: "食品",
          b: "内蒙古特产羊肋骨",
          c: "358794",
          d: "954",
          f: "2号货架",
          e: "2024-4-17",
          j: "2024-4-1",
          h: "李大胖"
        },
        {
          a: "食品",
          b: "山东特产黑猪排骨",
          c: "258794",
          d: "454",
          f: "1号货架",
          e: "2024-4-15",
          j: "2024-4-1",
          h: "李大胖"
        },
        {
          a: "食品",
          b: "辽宁北镇猪手",
          c: "758794",
          d: "7654",
          f: "3号货架",
          e: "2024-4-19",
          j: "2024-4-13",
          h: "孙大胖"
        },
        {
          a: "食品",
          b: "俄罗斯帝王蟹",
          c: "8794",
          d: "54",
          f: "4号货架",
          e: "2024-4-25",
          j: "2024-4-11",
          h: "赵大胖"
        },
        {
          a: "食品",
          b: "陕西软籽石榴",
          c: "9794",
          d: "654",
          f: "5号货架",
          e: "2024-4-14",
          j: "2024-4-19",
          h: "王帅"
        },
        {
          a: "文具",
          b: "中性笔",
          c: "78794",
          d: "454",
          f: "6号货架",
          e: "2024-4-21",
          j: "2024-4-1",
          h: "张天浩"
        },
      
       
      
      ],
      formInline: {
        user: "",
        region: ""
      }
    };
  },
  methods: {
    handleClick() {
      this.dialogVisible = true;
    },
    onSubmit() {
      console.log("submit!");
    }
  }
};
</script>
<style scoped >
.top-div {
  width: 100%;
  /* background-color: #fff; */
}
.top-div img {
  width: 100%;
  height: 100%;
}
.tableDiv {
  background-color: #fff;
  /* margin-top: 20px; */
  padding: 20px;
}
.custom-table /deep/ .el-table__body td {
  font-size: 12px; /* 你想要的字体大小 */
}
/deep/ .el-input__inner {
  height: 32px;
}
</style>


